import requests
import os


# 从环境变量中获取 DeepSeek API 密钥
DeepSeek_API_KEY = os.getenv("DeepSeek_API_KEY")

url = "https://api.deepseek.com/user/balance"

payload={}
headers = {
  'Accept': 'application/json',
  'Authorization': 'Bearer ' + DeepSeek_API_KEY
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)